package com.fc.backingbeans;

import javax.annotation.PostConstruct
import javax.faces.bean.ViewScoped

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

import com.fc.entities.User
import com.fc.service.UserDetailsService
import com.fc.service.UserService

@Component("accountController")
@ViewScoped
public class AccountController {
	boolean editable
	@Autowired private UserDetailsService userDetailsService
	@Autowired private UserService userService
	
	void updateUser() {
		userService.update(userDetailsService.currentUser)
	}
}
